<template>
<div>
<myComponent :show.sync="valueChild" style="padding: 30px 20px 30px 5px;border:1px solid #ddd;margin-bottom: 10px;"></myComponent>
  <button @click="changeValue">显示</button>
</div>
</template>

<script>
import myComponent from './myComponent'
export default {
  name: "test",
  components: {
    myComponent
  },
  data(){
    return {
      valueChild: true,
    }
  },
  methods:{
    changeValue(){
      this.valueChild = !this.valueChild;
    }
  }
}
</script>

<style scoped>

</style>